import _fetch from "api_zhoujianyi/fetch";
/**
 * 分页查询订单列表
 * @param { Object } data 请求参数
 * {
 *   orderNo undefined
 *   uid undefined
 *   merchantUid undefined
 *   goodsNo undefined
 *   goodsName undefined
 *   status undefined
 *   statusLsSplice undefined
 * }
 */
export function list(data) {
  return _fetch({
    url: "backend/order/list",
    method: "GET",
    data: data,
    headers: {}
  });
}
/**
 * 订单退款
 * @param { Object } data 请求参数
 * {
 *   goodsNo 商品编号
 *   uid 用户id
 *   orderAmount 订单金额
 *   orderNo 订单号
 *   appealImage1 举证图片1
 *   tradeNo 交易号
 *   appealImage2 举证图片2
 *   realPayAmount 实际支付金额
 *   appealId 投诉记录id
 *   appealReason 原因
 *   goodsType 商品类型
 * }
 */
export function refund(data) {
  return _fetch({
    url: "backend/order/refund",
    method: "POST",
    data: data,
    headers: {
      "Content-Type": "application/json"
    }
  });
}